package com.fer.tankr.controllers.level;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Collection;
import java.util.LinkedList;

public class LevelData {

	private Collection<String> levels;
	private int time;
	private int ammo;
	private int lives;
	
	public LevelData(InputStream is) throws IOException {
		levels = new LinkedList<String>();
		BufferedReader br = new BufferedReader(new InputStreamReader(is));
		time = Integer.parseInt(br.readLine());
		ammo = Integer.parseInt(br.readLine());
		lives = Integer.parseInt(br.readLine());
		for (String line = br.readLine();line!=null;line=br.readLine()) {
			levels.add(line);
		}
	}
	

	
	public Collection<String> getLevels() {
		return levels;
	}



	public int getTime() {
		return time;
	}



	public int getAmmo() {
		return ammo;
	}



	public int getLives() {
		return lives;
	}



	public Collection<String> getLines()
	{
		return levels;
	}
}
